<%--
  Created by IntelliJ IDEA.
  User: jijunxiang
  Date: 2021/11/25
  Time: 17:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    boolean updatePassword = (Boolean) session.getAttribute("updatePassword");
    if (updatePassword){
        out.print("<script>alert(\"修改密码成功，请重新登录！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/index.jsp'</script>");
    }else {
        out.print("<script>alert(\"您输入的密码有误，修改密码失败，请重新输入！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/updatePassword.jsp'</script>");
    }
%>
</body>
</html>
